curl --request POST \
--url https://api-lr.agent.ai/v1/action/file_converter_optimize_action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input_file_url": "<string>",
"input_format": "pdf",
"output_variable_name": "optimized_file",
"profile": "web"
}
'{
"status": 123,
"response": {}
}Compress and optimize PDF, PNG, or JPG files without changing the format. Reduces file size while maintaining quality.
curl --request POST \
--url https://api-lr.agent.ai/v1/action/file_converter_optimize_action \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input_file_url": "<string>",
"input_format": "pdf",
"output_variable_name": "optimized_file",
"profile": "web"
}
'{
"status": 123,
"response": {}
}Bearer token from your account (https://agent.ai/user/integrations#api)
S3 or public URL of the file to optimize.
File extension (pdf, png, or jpg).
Variable name for the result.
^[a-zA-Z][a-zA-Z0-9_]*$web, print, archive, max